package com.ck.javatestspace.mvc.controller;

import com.alibaba.fastjson.JSON;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

/**
 * @author chenghai on 2021/12/21 0021. - 星期二
 * @project java-test-space
 */
@RestController
@Slf4j
public class UserController {

    private Long one = 1L;

    @GetMapping("/t1")
    public Object t1(){
        ArrayList<Object> objects = Lists.newArrayList(1,2,3);
        return JSON.toJSONString(objects);
    }
}
